package com.yxx.business.entity;

import java.math.BigDecimal;
import com.yxx.common.core.domain.BaseEditDtoEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.experimental.Accessors;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 废物运输信息EditDto对象 tb_waste_transport
 *
 * @author yxx
 * @date 2025-08-16
 */
@Schema(description = "废物运输信息编辑实体")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Builder
@Data
public class TbWasteTransportEditDto extends BaseEditDtoEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "表ID")
    private Long wasteId;

    @Schema(description = "废弃物数量")
    private Long wasteQuantity;

    @Schema(description = "单位")
    @NotNull(message = "单位不能为空")
    private String unit;

    @Schema(description = "质量换算系数t/单位")
    private BigDecimal conversionFactor;

    @Schema(description = "运输方式")
    @NotNull(message = "运输方式不能为空")
    private String transportMode;

    @Schema(description = "运输距离(km)")
    private BigDecimal transportDistance;

    @Schema(description = "运输方式排放因子(kgCO2e/t*km)")
    private BigDecimal transportEmissionFactor;

    @Schema(description = "碳排放量(kgCO2e)")
    private BigDecimal totalEmission;

    @Schema(description = "更新者id")
    private Long createById;

    @Schema(description = "更新者id")
    private Long updateById;

}
